<?php
namespace App\Controller\App;

use App\Query\VideoQuery;

class VideoController extends Controller
{
    public function index()
    {
        return VideoQuery::model()->paginate(10)->toArray();
    }
    
    public function info($id)
    {
         return VideoQuery::model()->find($id);
    }
}
